.class public Lcom/teewoo/app/bus/ui/LinePassByStation;
.super Lcom/teewoo/app/bus/inface/BaseActivity;
.source "LinePassByStation.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/teewoo/app/bus/ui/LinePassByStation$MyLinePassByAdapter;
    }
.end annotation


# static fields
.field public static final COLLECT_IMAGE_FOCUS:I = 0x7f020013

.field public static final COLLECT_IMAGE_NORMAL:I = 0x7f020012

.field public static final COMMENT_IMAGE_FOCUS:I = 0x7f020014

.field public static final COMMENT_IMAGE_NORMAL:I = 0x7f020015

.field public static final SHARE_IMAGE_FOCUS:I = 0x7f020049

.field public static final SHARE_IMAGE_NORMAL:I = 0x7f02004a


# instance fields
.field private clicklistener:Landroid/view/View$OnClickListener;

.field private collectView:Landroid/widget/ImageView;

.field private collectionTab:Landroid/view/View;

.field private commentTab:Landroid/view/View;

.field private commentView:Landroid/widget/ImageView;

.field private errorListener:Landroid/content/DialogInterface$OnClickListener;

.field private isCollected:Z

.field private linePassBy:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/Line;",
            ">;"
        }
    .end annotation
.end field

.field private linePassByListView:Landroid/widget/ListView;

.field private needSave:Z

.field private proBar:Landroid/widget/ProgressBar;

.field private shareTab:Landroid/view/View;

.field private shareView:Landroid/widget/ImageView;

.field private stationCollectionManager:Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;

.field private stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

.field private stationId:I

.field private stationName:Ljava/lang/String;

.field private titleView:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 43
    invoke-direct {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;-><init>()V

    .line 62
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassBy:Ljava/util/List;

    .line 70
    iput-boolean v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->needSave:Z

    .line 71
    iput-boolean v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->isCollected:Z

    .line 72
    new-instance v0, Lcom/teewoo/app/bus/ui/LinePassByStation$1;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/LinePassByStation$1;-><init>(Lcom/teewoo/app/bus/ui/LinePassByStation;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->errorListener:Landroid/content/DialogInterface$OnClickListener;

    .line 137
    new-instance v0, Lcom/teewoo/app/bus/ui/LinePassByStation$2;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/LinePassByStation$2;-><init>(Lcom/teewoo/app/bus/ui/LinePassByStation;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->clicklistener:Landroid/view/View$OnClickListener;

    .line 43
    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;
    .locals 1
    .parameter

    .prologue
    .line 57
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->commentView:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$1(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;
    .locals 1
    .parameter

    .prologue
    .line 59
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->shareView:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$10(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 62
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassBy:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$11(Lcom/teewoo/app/bus/ui/LinePassByStation;)[I
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->item_background:[I

    return-object v0
.end method

.method static synthetic access$12(Lcom/teewoo/app/bus/ui/LinePassByStation;)V
    .locals 0
    .parameter

    .prologue
    .line 228
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->dataRequestAndProgress()V

    return-void
.end method

.method static synthetic access$13(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ProgressBar;
    .locals 1
    .parameter

    .prologue
    .line 63
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->proBar:Landroid/widget/ProgressBar;

    return-object v0
.end method

.method static synthetic access$14(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 51
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->titleView:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$15(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ListView;
    .locals 1
    .parameter

    .prologue
    .line 61
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassByListView:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$16(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/content/DialogInterface$OnClickListener;
    .locals 1
    .parameter

    .prologue
    .line 72
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->errorListener:Landroid/content/DialogInterface$OnClickListener;

    return-object v0
.end method

.method static synthetic access$2(Lcom/teewoo/app/bus/ui/LinePassByStation;)Z
    .locals 1
    .parameter

    .prologue
    .line 71
    iget-boolean v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->isCollected:Z

    return v0
.end method

.method static synthetic access$3(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/widget/ImageView;
    .locals 1
    .parameter

    .prologue
    .line 58
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->collectView:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$4(Lcom/teewoo/app/bus/ui/LinePassByStation;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 43
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$5(Lcom/teewoo/app/bus/ui/LinePassByStation;)Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;
    .locals 1
    .parameter

    .prologue
    .line 65
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationCollectionManager:Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;

    return-object v0
.end method

.method static synthetic access$6(Lcom/teewoo/app/bus/ui/LinePassByStation;)I
    .locals 1
    .parameter

    .prologue
    .line 68
    iget v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationId:I

    return v0
.end method

.method static synthetic access$7(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 69
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationName:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$8(Lcom/teewoo/app/bus/ui/LinePassByStation;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 71
    iput-boolean p1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->isCollected:Z

    return-void
.end method

.method static synthetic access$9(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 211
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->buildSMSContent()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private buildSMSContent()Ljava/lang/String;
    .locals 4

    .prologue
    .line 212
    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    .line 213
    .local v1, sms:Ljava/lang/StringBuffer;
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationName:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 214
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassBy:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_0

    .line 215
    const-string v2, ",\u9014\u5f84\u7ebf\u8def:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 216
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassBy:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-lt v0, v2, :cond_1

    .line 222
    .end local v0           #i:I
    :cond_0
    const-string v2, ","

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v2

    const-string v3, "http://m.doudou360.com/"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 223
    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v2

    return-object v2

    .line 217
    .restart local v0       #i:I
    :cond_1
    if-eqz v0, :cond_2

    .line 218
    const-string v2, ","

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 219
    :cond_2
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassBy:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/Line;

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/Line;->getName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "\\("

    invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    aget-object v2, v2, v3

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 216
    add-int/lit8 v0, v0, 0x2

    goto :goto_0
.end method

.method private dataRequestAndProgress()V
    .locals 3

    .prologue
    .line 230
    :try_start_0
    iget v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationId:I

    invoke-static {v1}, Lcom/teewoo/app/bus/util/SearchUtil;->getLinePassBy(I)Ljava/util/List;

    move-result-object v1

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassBy:Ljava/util/List;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 235
    :goto_0
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassBy:Ljava/util/List;

    if-eqz v1, :cond_2

    .line 236
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassBy:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_1

    .line 237
    iget-boolean v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->needSave:Z

    if-eqz v1, :cond_0

    .line 238
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->saveStationSearchHistory()V

    .line 239
    :cond_0
    new-instance v1, Lcom/teewoo/app/bus/ui/LinePassByStation$4;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/LinePassByStation$4;-><init>(Lcom/teewoo/app/bus/ui/LinePassByStation;)V

    invoke-virtual {p0, v1}, Lcom/teewoo/app/bus/ui/LinePassByStation;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 283
    :goto_1
    return-void

    .line 231
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 232
    .local v0, e:Ljava/lang/Exception;
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->context:Landroid/content/Context;

    const v2, 0x7f080017

    invoke-static {v1, v2}, Lcom/teewoo/app/bus/util/ToastUtil;->showToastCenter(Landroid/content/Context;I)V

    .line 233
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassBy:Ljava/util/List;

    goto :goto_0

    .line 266
    .end local v0           #e:Ljava/lang/Exception;
    :cond_1
    new-instance v1, Lcom/teewoo/app/bus/ui/LinePassByStation$5;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/LinePassByStation$5;-><init>(Lcom/teewoo/app/bus/ui/LinePassByStation;)V

    invoke-virtual {p0, v1}, Lcom/teewoo/app/bus/ui/LinePassByStation;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_1

    .line 275
    :cond_2
    new-instance v1, Lcom/teewoo/app/bus/ui/LinePassByStation$6;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/LinePassByStation$6;-><init>(Lcom/teewoo/app/bus/ui/LinePassByStation;)V

    invoke-virtual {p0, v1}, Lcom/teewoo/app/bus/ui/LinePassByStation;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_1
.end method

.method private hasCollected(I)Z
    .locals 2
    .parameter "stationId"

    .prologue
    .line 306
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    invoke-virtual {v1, p1}, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;->find(I)Lcom/teewoo/app/bus/model/history/StationHistory;

    move-result-object v0

    .line 307
    .local v0, sh:Lcom/teewoo/app/bus/model/history/StationHistory;
    if-nez v0, :cond_0

    const/4 v1, 0x0

    :goto_0
    return v1

    :cond_0
    const/4 v1, 0x1

    goto :goto_0
.end method

.method private initListener()V
    .locals 2

    .prologue
    .line 129
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->back:Landroid/view/View;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->clicklistener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 130
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->commentTab:Landroid/view/View;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->clicklistener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 131
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->collectionTab:Landroid/view/View;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->clicklistener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 132
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->shareTab:Landroid/view/View;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->clicklistener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 133
    return-void
.end method

.method private saveStationSearchHistory()V
    .locals 9

    .prologue
    .line 286
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    iget v5, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationId:I

    invoke-virtual {v4, v5}, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;->find(I)Lcom/teewoo/app/bus/model/history/StationHistory;

    move-result-object v3

    .line 287
    .local v3, staHis:Lcom/teewoo/app/bus/model/history/StationHistory;
    if-eqz v3, :cond_0

    .line 289
    invoke-static {}, Lcom/teewoo/app/bus/util/Utils;->getLocCurrentTime()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/teewoo/app/bus/model/history/StationHistory;->setSearchTime(Ljava/lang/String;)V

    .line 290
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    invoke-virtual {v4, v3}, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;->update(Lcom/teewoo/app/bus/model/history/StationHistory;)V

    .line 299
    :goto_0
    return-void

    .line 292
    :cond_0
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    invoke-virtual {v4}, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;->getCount()J

    move-result-wide v0

    .line 293
    .local v0, count:J
    const-wide/16 v4, 0x5

    cmp-long v4, v0, v4

    if-ltz v4, :cond_1

    .line 294
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    invoke-virtual {v4}, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;->getAll()Ljava/util/List;

    move-result-object v2

    .line 295
    .local v2, list:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/history/StationHistory;>;"
    iget-object v5, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v4

    const/4 v6, 0x1

    sub-int/2addr v4, v6

    invoke-interface {v2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/teewoo/app/bus/model/history/StationHistory;

    invoke-virtual {v4}, Lcom/teewoo/app/bus/model/history/StationHistory;->getId()Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v5, v4}, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;->delete(Ljava/lang/Integer;)V

    .line 297
    .end local v2           #list:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/history/StationHistory;>;"
    :cond_1
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    new-instance v5, Lcom/teewoo/app/bus/model/history/StationHistory;

    iget-object v6, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationName:Ljava/lang/String;

    iget v7, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationId:I

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-static {}, Lcom/teewoo/app/bus/util/Utils;->getLocCurrentTime()Ljava/lang/String;

    move-result-object v8

    invoke-direct {v5, v6, v7, v8}, Lcom/teewoo/app/bus/model/history/StationHistory;-><init>(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;)V

    invoke-virtual {v4, v5}, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;->save(Lcom/teewoo/app/bus/model/history/StationHistory;)V

    goto :goto_0
.end method


# virtual methods
.method public initialUI()V
    .locals 2

    .prologue
    .line 106
    invoke-super {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;->initialUI()V

    .line 107
    iput-object p0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->context:Landroid/content/Context;

    .line 108
    sget-object v0, Lcom/teewoo/app/bus/ui/LinePassByStation;->cityView:Landroid/widget/TextView;

    sget-object v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->currentCityAddress:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 109
    const v0, 0x7f0a00a2

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->titleView:Landroid/widget/TextView;

    .line 111
    const v0, 0x7f0a0008

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->commentTab:Landroid/view/View;

    .line 112
    const v0, 0x7f0a000a

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->collectionTab:Landroid/view/View;

    .line 113
    const v0, 0x7f0a000c

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->shareTab:Landroid/view/View;

    .line 115
    const v0, 0x7f0a0009

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->commentView:Landroid/widget/ImageView;

    .line 116
    const v0, 0x7f0a000b

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->collectView:Landroid/widget/ImageView;

    .line 117
    const v0, 0x7f0a000d

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->shareView:Landroid/widget/ImageView;

    .line 119
    const v0, 0x7f0a003b

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->linePassByListView:Landroid/widget/ListView;

    .line 121
    const v0, 0x7f0a002a

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->proBar:Landroid/widget/ProgressBar;

    .line 123
    new-instance v0, Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationCollectionManager:Lcom/teewoo/app/bus/manager/collection/StationCollectionManager;

    .line 124
    new-instance v0, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/manager/history/StationHistoryManager;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationHistoryManager:Lcom/teewoo/app/bus/manager/history/StationHistoryManager;

    .line 125
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .parameter "savedInstanceState"

    .prologue
    .line 84
    invoke-super {p0, p1}, Lcom/teewoo/app/bus/inface/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 85
    const v1, 0x7f030010

    invoke-virtual {p0, v1}, Lcom/teewoo/app/bus/ui/LinePassByStation;->setContentView(I)V

    .line 86
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->initialUI()V

    .line 87
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->initListener()V

    .line 89
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/LinePassByStation;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 90
    .local v0, bundle:Landroid/content/Intent;
    const-string v1, "com.teewoo.app.bus.stationName"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationName:Ljava/lang/String;

    .line 91
    const-string v1, "com.teewoo.app.bus.stationId"

    const/4 v2, -0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    iput v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationId:I

    .line 92
    const-string v1, "save.station.history.flag"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->needSave:Z

    .line 93
    iget v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->stationId:I

    invoke-direct {p0, v1}, Lcom/teewoo/app/bus/ui/LinePassByStation;->hasCollected(I)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 94
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation;->collectView:Landroid/widget/ImageView;

    const v2, 0x7f020013

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 96
    :cond_0
    new-instance v1, Lcom/teewoo/app/bus/ui/LinePassByStation$3;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/LinePassByStation$3;-><init>(Lcom/teewoo/app/bus/ui/LinePassByStation;)V

    .line 100
    invoke-virtual {v1}, Lcom/teewoo/app/bus/ui/LinePassByStation$3;->start()V

    .line 102
    return-void
.end method
